#ifndef _APPS_BDESKTOP_CDOCKTIP_H_
#define _APPS_BDESKTOP_CDOCKTIP_H_

#include "auto.h"
#include <buola/gui/cwindow.h>

namespace buola { namespace bdesktop {

class CDockTip : public gui::CWindow
{
public:
    CDockTip();
    
public:
    void SetPos(const CPoint &pPos);

    //! sets the caption to display for the box
    void SetCaption(const std::wstring &pCaption);
    
    //! returns the caption to display for the box
    const std::wstring &GetCaption()    {   return mCaption;    }
    
protected:
////////////// event handling //////////////
    virtual void OnCreate();
    virtual void OnExpose(gui::CExposeEvent*);
    virtual void OnSize(gui::CGeometryEvent*);
    void OnAnimationTimer();

protected:
    CPoint mRealPos;
    bool mPosValid;
    PFont mFont;
    std::wstring mCaption;
};

/*namespace bdesktop*/ } /*namespace buola*/ }

#endif
